﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Triad.Web.Login" EnableViewState="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>App LogOn</title>
    <script type="text/javascript">
        document.execCommand('ClearAuthenticationCache',false,null);
    </script>
</head>
<body>
    <form id="FormMain" runat="server">
<center>
    <div style="padding-right: 5px; padding-left: 5px; font-weight: bold; font-size: large;
        padding-bottom: 5px; width: 400px; color: navy; border-top-style: groove; padding-top: 5px;
        border-right-style: groove; border-left-style: groove; background-color: #C0C0C0;
        text-align: center; border-bottom-style: groove; background-repeat: repeat-x;">
        <span style="color:White">App LogOn</span><br />
        <br />
        <img alt="App Logo" src="/_fw/images/Logo_Main.jpg" style="border-style: outset; border-width: inherit" /><br />
        <br />
        <asp:Login ID="Login1" runat="server" RememberMeSet="True" OnAuthenticate="Login1_Authenticate" OnLoginError="Login1_LoginError" DestinationPageUrl="~/MainMenu.aspx" >
            <LayoutTemplate>
                <table border="0" cellpadding="1" cellspacing="0" 
                    style="border-collapse: collapse" align="center">
                    <tr>
                        <td align="right">
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" Font-Bold="True">User Name:</asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="UserName" runat="server" TabIndex="1"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" Font-Bold="True">Password:</asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="Password" runat="server" TabIndex="2" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>

                    <tr>
                        <td align="center" colspan="2">
                            <asp:Button ID="LoginButton" runat="server" CommandName="Login" TabIndex="5" Text="Log In" ValidationGroup="Login1" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:CheckBox ID="RememberMe" runat="server" TabIndex="4" Text="Remember me next time." />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <a href="/RecoverPassword.aspx" >Lost Password?</a>
                            <br />
                            <br />
                        </td>
                    </tr>
                </table>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="Login1" />
            </LayoutTemplate>
        </asp:Login>

    </div>
</center>
    </form>
</body>
</html>
